How to use the API or where is a documentation about it?

David Exodus Posted in General Discussion 5 years ago

I'm currently trying to program a login with android SDK to make notifications for mobile. I tried to follow this guide to get API informations: http://www.gregreda.com/2015/02/15/web-scraping-finding-the-api/

But the results are not as expected, i can't find any answers. How do I use this API?

Replies
us Rishi B Replied 5 years ago

The github page has some info at https://github.com/opensource-socialnetwork/OssnServices

Looks like you can currently do the following:

You can get a Users basic details like First Name Last Name Email
Gender Birthdate
Get users friends
User Authentication (by username and password)
Username can be email

us Rishi B Replied 5 years ago

this may be helpful: https://stackoverflow.com/questions/3913502/restful-call-in-java

the OSSN API right now is fairly simple - all you can do is authenticate, as far as I know there's other access to data yet, but that's probably in development. it wouldn't be tough to write your own if you know some basic sql and php though.

Indonesian Arsalan Shah Replied 5 years ago

Not sure what you want David, and i have no knowledge about java

ch David Exodus Replied 5 years ago

Okay. Thanks. Can you tell me how to store the connection in the app(Java)? currently its taking the login and opening the browser instead of storing it.

Indonesian Arsalan Shah Replied 5 years ago

No idea what you are trying to do. Seems you require a developer to understand these API response and the use

The 107 code means the version you tried to call in curl/app request didn't exist. See basic usage here https://github.com/opensource-socialnetwork/OssnServices?files=1

ch David Exodus Replied 5 years ago

and what does ossnservices:invalidversion mean? I get this when i enter /api at the end of my url:

{
"merchant": "Metal Schweiz",
"url": "https:\/\/metal-schweiz.ch\/",
"time_token": 1564775064,
"payload": false,
"code": "107",
"message": "ossnservices:invalidversion"
}